package org.jeecg.chase.common.result;

/**
 * @author leikai
 * @version 1.0
 * @description: 单个对象返回封装
 * @date 2021/07/23/0023 15:51
 */
public class SimpleResult<T> extends BaseResult {
    private T data;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public SimpleResult() {

    }

    public SimpleResult(int status, String code, String msg) {
        super(status, code, msg);
    }

    public SimpleResult(int status, String code, String msg, T data) {
        this(status, code, msg);
        this.data = data;
    }

    public SimpleResult(T data) {
        this.data = data;
    }
}
